// 获取用户列表部分
// let finalData = JSON.parse(xml2json['soap:Envelope']['soap:Body']['FriendUserInfoSelResponse']['FriendUserInfoSelResult']);
function getUserList(userIndex = 1, userDataType = 1) {
  // userIndex        页码
  // userDataType     1.表示当前日期、 2.表示昨天
  return `<?xml version="1.0" encoding="utf-8"?>
        <soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
        <soap:Header>
        <CustomSOAPHeader xmlns="http://Mobile.0710yx.com/IOSPlazaWebServices/">
        <name>MjGameZore</name>
        <password>Mj@2010StartCat</password>
        </CustomSOAPHeader>
        </soap:Header>
        <soap:Body>
        <FriendUserInfoSel xmlns="http://Mobile.0710yx.com/IOSPlazaWebServices/">
        <UserID>815018</UserID>
        <LogonPass>feca0954c14f4fc893229e2b64430fd4</LogonPass>
        <FriendID>781600</FriendID>
        <PageIndex>${userIndex}</PageIndex>
        <DataType>${userDataType}</DataType>
        <SearchGameID>0</SearchGameID>
        <SearchPartnerGameID>0</SearchPartnerGameID>
        <SearchNickName></SearchNickName>
        <BindingState>0</BindingState>
        </FriendUserInfoSel>
        </soap:Body>
        </soap:Envelope>`;
}
// 获取统计数据部分
// let finalData = JSON.parse(xml2json['soap:Envelope']['soap:Body']['FriendRecordRoomGameSelResponse']['FriendRecordRoomGameSelResult']);
function getGameList(index = 1, dataType = 1) {
  // index        页码
  // dataType     1.表示当前日期、 2.表示昨天
  return `<?xml version="1.0" encoding="utf-8"?>
        <soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
        <soap:Header>
        <CustomSOAPHeader xmlns="http://Mobile.0710yx.com/IOSPlazaWebServices/">
        <name>MjGameZore</name>
        <password>Mj@2010StartCat</password>
        </CustomSOAPHeader>
        </soap:Header>
        <soap:Body>
        <FriendRecordRoomGameSel xmlns="http://Mobile.0710yx.com/IOSPlazaWebServices/">
        <UserID>815018</UserID>
        <LogonPass>feca0954c14f4fc893229e2b64430fd4</LogonPass>
        <ClubID>781600</ClubID>
        <IsHead>1</IsHead>
        <PageIndex>${index}</PageIndex>
        <DataType>${dataType}</DataType>
        <DateDiff>0</DateDiff>
        <FriendType>1</FriendType>
        </FriendRecordRoomGameSel>
        </soap:Body>
        </soap:Envelope>`;
}

// 两只老虎部分

// 获取用户列表部分
// let finalData = JSON.parse(xml2json['soap:Envelope']['soap:Body']['FriendUserInfoSelResponse']['FriendUserInfoSelResult']);
function getUserList_2(userIndex = 1, userDataType = 1) {
  // userIndex        页码
  // userDataType     1.表示当前日期、 2.表示昨天
  return `<?xml version="1.0" encoding="utf-8"?>
        <soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
        <soap:Header>
        <CustomSOAPHeader xmlns="http://Mobile.0710yx.com/IOSPlazaWebServices/">
        <name>MjGameZore</name>
        <password>Mj@2010StartCat</password>
        </CustomSOAPHeader>
        </soap:Header>
        <soap:Body>
        <FriendUserInfoSel xmlns="http://Mobile.0710yx.com/IOSPlazaWebServices/">
        <UserID>815018</UserID>
        <LogonPass>feca0954c14f4fc893229e2b64430fd4</LogonPass>
        <FriendID>851755</FriendID>
        <PageIndex>${userIndex}</PageIndex>
        <DataType>${userDataType}</DataType>
        <SearchGameID>0</SearchGameID>
        <SearchPartnerGameID>0</SearchPartnerGameID>
        <SearchNickName></SearchNickName>
        <BindingState>0</BindingState>
        </FriendUserInfoSel>
        </soap:Body>
        </soap:Envelope>`;
}
// 获取统计数据部分
// let finalData = JSON.parse(xml2json['soap:Envelope']['soap:Body']['FriendRecordRoomGameSelResponse']['FriendRecordRoomGameSelResult']);
function getGameList_2(index = 1, dataType = 1) {
  // index        页码
  // dataType     1.表示当前日期、 2.表示昨天
  return `<?xml version="1.0" encoding="utf-8"?>
        <soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
        <soap:Header>
        <CustomSOAPHeader xmlns="http://Mobile.0710yx.com/IOSPlazaWebServices/">
        <name>MjGameZore</name>
        <password>Mj@2010StartCat</password>
        </CustomSOAPHeader>
        </soap:Header>
        <soap:Body>
        <FriendRecordRoomGameSel xmlns="http://Mobile.0710yx.com/IOSPlazaWebServices/">
        <UserID>815018</UserID>
        <LogonPass>feca0954c14f4fc893229e2b64430fd4</LogonPass>
        <ClubID>851755</ClubID>
        <IsHead>1</IsHead>
        <PageIndex>${index}</PageIndex>
        <DataType>${dataType}</DataType>
        <DateDiff>0</DateDiff>
        <FriendType>1</FriendType>
        </FriendRecordRoomGameSel>
        </soap:Body>
        </soap:Envelope>`;
}

exports.getUserList = getUserList;
exports.getGameList = getGameList;
exports.getUserList_2 = getUserList_2;
exports.getGameList_2 = getGameList_2;
